
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Lib_tampilan {

	function form_statis($label, $isi){
		return "
		<div class='form-horizontal'>
			<div class='form-group'>
				<label class='col-sm-2 control-label'>
					$label
				</label>
				<div class='col-sm-10'>
					<p class='form-control-static'>
						$isi
					</p>
				</div>
			</div>
		</div>";
	}

	function form_bar($label, $persen){
		return "
		<div class='form-horizontal'>
			<div class='form-group'>
				<label for='status_service' class='col-sm-2 control-label'>
					$label
				</label>
				<div class='col-sm-6 form-control-static'>
					<div class='progress' style='margin: 0;'>
						<div class='progress-bar progress-bar-info' role='progressbar' aria-valuenow='$persen' aria-valuemin='0' aria-valuemax='100' style='width: $persen%'>
							<span class='sr-only'>
								$persen%
							</span>
						</div>
					</div>
				</div>
				<p class='col-sm-4 form-control-static'>
					$persen%
				</p>
			</div>
		</div>";
	}

}